﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YiYiTong.Rocket.Helper;

namespace YiYiTong.Rocket.DataAccess
{
    /// <summary>
    /// DB链接工厂，通过该类获取访问DB的链接
    /// </summary>
    public class DBFactory
    {
        public static DBHelper ApiDB
        {
            get { return DBHelper.CreateInstance(DBConfig.Instance.strApiDBConn); }
        }

        public static DBHelper AdminDB
        {
            get { return DBHelper.CreateInstance(DBConfig.Instance.strAdminDBConn); }
        }
    }
}
